<template>
<!-- 试卷详情 -->
  <div>
    <!-- {{ExamDetail.questions}} -->
    <h2 :style="{padding: '20px',margin: '10px'}">试卷详情</h2>
    <div class="main" v-for="item in ExamDetail.questions" :key="item.questions_id">
      <div :style="{fontWeight:800}">{{item.questions_type_text}}</div>
      <div class="main_chil">{{item.questions_stem}}</div>
    </div>
  </div>
</template>

<script>
import { mapState, mapActions, mapMutations } from 'vuex'
export default {
  data () {
    return {
      aaa: 1111
    }
  },
  created () {
    this.getExamDetailAll()
    // this.getExamDetail()
  },
  methods: {
    ...mapMutations(['getExamDetailAll']),
    ...mapActions(['getExamDetail'])
  },
  computed: {
    ...mapState({
      ExamDetail: (state) => state.GetExam.ExamDetail
    })
  }
}
</script>

<style lang="scss" scoped>
.main{
  margin: 20px;
  border: solid 1px #000;
  // font-weight: ;
}
.main_chil{
  padding: 10px;
  margin: 15px;
  background: #ccc;
}
</style>
